package com.jxz.ryxxpost.controller;

import java.util.Scanner;

public class IfExer1 {
    public  static void main(String[] args){
        Scanner scanner = new Scanner(System.in);
        System.out.println("请输入你的身高：（cm）");
        int height =scanner.nextInt();
        System.out.println("请输入你的财富：（千万）");
        double wealth  =scanner.nextDouble();
        System.out.println("请输入你是否帅：（true/false）");
        boolean handsome =scanner.nextBoolean();

/*      方式一：

        if(height>=180 && wealth >=1 && handsome){
            System.out.println("1");
        }else if(height>=180 || wealth >=1 || handsome){
            System.out.println("2");
        }else{
            System.out.println("3");
        }*/

//      方式二：
        System.out.println("请输入你是否帅：（是/否）");
        String isHandsome=scanner.next();
        if (height>=180 && wealth >=1 && isHandsome.equals("是")){
            System.out.println("1");
        }else if (height>=180 || wealth >=1 || isHandsome.equals("是")){
            System.out.println("2");
        }else{
            System.out.println("3");
        }

        }
    }

